import { createApp } from "vue"
import App from "./App.vue"

// css
import "@/style/index.scss"
// vite-plugin-svg-icons
import "virtual:svg-icons-register"
// vue-router
import router from "@/router"
// pinia
import pinia from "@/store"
// v-i18n
import i18n from "./locale"
// ant-design-vue
import Antd from "ant-design-vue"
// plugins: register global components and directive
import plugins from "@/plugins"
// globalComponents
import globalComponents from "@/components"

const app = createApp(App)

app.use(plugins)
app.use(router)
app.use(pinia)

app.use(Antd)

app.use(i18n)

app.use(globalComponents)

app.mount("#app")
